

import {refreshTokenKey, tokenKey} from "./constants";
import Cookies from "js-cookie";

export const getToken = () => Cookies.get(tokenKey)
export const setToken = (token: string) => Cookies.set(tokenKey, token)
export const removeToken = () => Cookies.remove(tokenKey)
export function getRefreshToken(){
    return Cookies.get(refreshTokenKey);
}
export function setRefreshToken(refreshToken:string){
    Cookies.set(refreshTokenKey, refreshToken)
}

export function removeRrefeshToken() {
    Cookies.remove(refreshTokenKey);
}
